package test.design.chain.servlet;

import java.util.Date;

import test.design.chain.Request;
import test.design.chain.Response;

public class LogFilter implements Filter {

	@Override
	public void doFilter(Request request, Response response, Chain chain) {
		System.out.println("logFilter start at " + new Date());
		response.out += "-log";
		chain.doFilter(request, response);
		System.out.println("logFilter end at " + new Date());
	}

	@Override
	public void doFilter(Request request, Response response) {
		response.out += "-log";
	}

}
